#include "window.h"
#include "soucoupe.h"
#include "lumiere.h"
#include "teapot.h"
#include "vent.h"
#include "plan.h"

int main(int argc, char**argv)
{
  Window *win = WindowCreator::createWindow("toto",0,0,250,250,&argc,argv);


  Plan *p = new Plan (30.0,30.0, "neon.jpg");

  //Lumiere
//  Lumiere lum;
//  lum.setPosition(0,5,10);
//  lum.setDiffuse(1.0,0.81,0.43,1.0);
//  lum.setCutoff(2.0);
//  lum.setSpecular(1.0,0.0,0.0,1.0);
//  lum.setDirection(0.0,-5.0,-10.0);
  Vent vent;
  //Soucoupe
  Soucoupe s(&vent);
 // s.setPosition(5.0,5.0,2.0); 
  //teapot
  Teapot t;
  t.setPosition(7,1,0);
  Scene scene;
  scene.addObjet(&s);
  scene.addObjet(&t);
//  scene.addObjet(p);
//  scene.addLumiere(&lum);
  scene.addTimerListener(&s);
  scene.addTimerListener(&vent);
  win->setScene(&scene);
  win->mainLoop();
  return 0;
}
